//
//  SettingAndHelpViewController.m
//  QuickCure
//
//  Created by 马文星 on 16/4/28.
//  Copyright © 2016年 Demos. All rights reserved.
//

#import "SettingAndHelpViewController.h"

@interface SettingAndHelpViewController ()

@end

@implementation SettingAndHelpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    

    [UIAlertView alertWithTitle:@"温馨提示" message:@"亲，确定要退出登录吗~" cancelBtnName:@"取消" otherBtnName:@"确定" callBackBlock:^(NSInteger buttonIndex) {
        
        if (buttonIndex==1) {
            
            [MLDefaults setBool:NO forKey:kIsUserLoginKey];
            
            [[UserDTO sharedInstance] clearUserData];
            
            self.loginOutBlock();
            
            [self.navigationController popToRootViewControllerAnimated:YES];
        }
    }];

    

}
@end
